<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12 center">					
            <div class="widget-box">
                <div class="widget-title">
                    <span class="icon">
                        <i class="icon-align-justify"></i>									
                    </span>
                    <h5><?=$data['title']?></h5>
                </div>
                <div class="widget-content nopadding">    
                    <h6><?=$data['success_msg']?></h6>
                    
                    <form name="form" id="product-form" class="form-horizontal" method="post" action="" enctype="multipart/form-data">
                        <input type="hidden" name="id"      id="id"      value="" />
                        <input type="hidden" name="update"       value="1" />
                        <input type="hidden" name="page"        id="page"       value="" />
                        <input type="hidden" name="pagesize"    id="pagesize"   value="" />
                        <input type="hidden" name="key"         id="search_id"  value="" />
                        <input type="hidden" name="currentuserid"                 value="" />
                        
                        
                        
                        <div class="control-group  <?php echo form_error('code') ? 'error' : ''?>">
                        	<label class="control-label">Code</label>
                            <div class="controls">
                            	<input name="code" value="<?php echo $form['code']; ?>" />
                            	<?php if (form_error('code')) : ?>
	                            	<label class="error-msg"><?php echo form_error('code'); ?></label>
	                            <?php endif; ?>      
                            </div>
                        </div>
                        
                        <div class="control-group  <?php echo form_error('name') ? 'error' : ''?>">
                        	<label class="control-label">Name</label>
                            <div class="controls">
                            	<input name="name" value="<?php echo $form['name']; ?>" />
                            	<?php if (form_error('name')) : ?>
	                            	<label class="error-msg"><?php echo form_error('name'); ?></label>
	                            <?php endif; ?>   
                            </div>
                        </div>
                        
                        <div class="control-group">
                        	<label class="control-label">Description</label>
                            <div class="controls">
                            	<textarea name="short_cont"><?php echo $form['short_cont']; ?></textarea>   
                            </div>
                        </div>
                        
                        <div class="control-group  <?php echo form_error('author') ? 'error' : ''?>">
                        	<label class="control-label">Author</label>
                            <div class="controls">
                            	<input name="author" value="<?php echo $form['author']; ?>" />
                            	<?php if (form_error('author')) : ?>
	                            	<label class="error-msg"><?php echo form_error('author'); ?></label>
	                            <?php endif; ?>      
                            </div>
                        </div>
                        
                        
                        <div class="alert"  id="updateform_error"></div>
                        <div class="form-actions">
                            <input class="btn btn-primary" name="save" value="Save" type="submit" />
                        </div>
                    </form>
                    
                </div>
            </div>
        </div>
    </div>
    
    
</div>